<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>{% block title %}首页{% endblock %} | Linux 游戏站 | Linux Games | Gamux.org_5.0.0.201411_Alex</title>
  <link href="{{ url_for('static', filename='css/common.css') }}" rel="stylesheet"/>
  {% block head %}

  {% endblock %}
</head>
<body>
<div class="all">
  <header class="header">
    {% block header %}
    <nav class="top-background">
    </nav>
    <nav class="top regular">
      <div class="top-logo">
        <img src="{{ url_for('static', filename='images/logo.png')}}"/>
      </div>
      <div class="top-menu-bar">
        <ul>
          <li><a href="/">首页</a></li>
          <li>新鲜事</li>
          <li><a href="gamepage.html">游戏</a></li>
          <li>开发者社区</li>
          <li>捐赠</li>
        </ul>
      </div>
      <div class="top-login">
        <ul>
          {% if current_user is defined and current_user.is_authenticated() %}
            <li>{{ current_user.email }} |
                <a href="{{ url_for('logout') }}"><button type="button" class="row-button top-button" id="top-logout-button">注销</button></a>
            </li>
          {% else %}
            <li>
              <a href="{{ url_for('login') }}"><button type="button" class="row-button top-button" id="top-login-button">登录</button>
            </li>
            <li>
                <a href="{{ url_for('register') }}"><button type="button" class="row-button top-button">注册</button></a>
            </li>
            <li class="top-forget-passwd"><span>忘记密码？</span></li>
          {% endif %}

        </ul>
      </div>
    </nav>
    {% endblock %}
  </header>
  <!--main content-->
  <section class="main regular">
<!--    <section class="message">
      {% block message %}
      {% with messages = get_flashed_messages() %}
        {% if messages %}
          <ul class=flashes>
          {% for message in messages %}
            <li>{{ message }}</li>
          {% endfor %}
          </ul>
        {% endif %}
      {% endwith %}
      {% endblock %}
    </section>
-->
    <section class="main-section">
    {% block content %}{% endblock %}
    </section>
  </section>
  {% block footer %}
  <footer class="footer">

    <div class="footer-content regular">
      aaaaaaaaaaaaaaa<br/>
      aaaaaaaaaaaaaaa<br/>
      aaaaaaaaaaaaaaa<br/>
    </div>
  </footer>
  {% endblock %}
</div>
<script src="http://libs.useso.com/js/jquery/1.11.1/jquery.min.js"></script>
{% block script %}
{% endblock %}
</body>
</html>